package org.dy.db.support;

import java.util.List;
import java.util.Map;

import org.dy.db.util.DBConnectionManager;

import junit.framework.TestCase;

public class TestDAO extends TestCase {

	BaseDAO pdao;

	protected void setUp() throws Exception {
		DBConnectionManager.setOpen(true, null);
		pdao = new BaseDAO();
	}

	protected void tearDown() throws Exception {
		pdao = null;
		DBConnectionManager.release();
	}

	public void test() {
		List<Map> list = pdao.queryForList("select * from test");
		assertNotNull(list);
	}

}
